Post

Replies

Boosts

Views

Activity

Core Data CloudKit App Concerns
Hihi I'm developing a patient management system using Code Data App that supports CloudKit, I feel it's the best scena to use, my concern is if a user a doctor for example is editing a record while another staff delete this record, what's the design pattern here ? Locking the record ? Can that be done in Core Data CloudKit ?Another concern is, what if a record is deleted and because there's few seconds of delay in data sync another user might open that record or at least try to open it ? Or maybe he edited it when he was offline and then when going online that record was deleted ?There might be many other such cases but what I understand that new systems solves this issues in a better why ?--Kindest Regards
1
0
330
Apr ’20
Runtime Nill Error
HiThis is a simple Core Data project I dont know why Im getting nil value error in line 46 in View Controller although everyting seems to be fine !--Kindest Regardsh ttps://www.dropbox.com/s/mummh4429nkhs3h/CoreDataApp.zip?dl=0
3
0
437
Apr ’20
plist file path error
HiI choosed the plist file in my iOS project and made a new group from selection to organize my project better, but started getting the error below ? haw can this be solved ?--Kindest Regardserror: Build input file cannot be found: '/Users/AmmarSM/Downloads/CoreDataApp/CoreDataApp/Info.plist' (in target 'CoreDataApp' from project 'CoreDataApp')
1
0
1.2k
Apr ’20
Strange Swift Code
HiWhen creating Core Data iOS project we get the below code, I find it strange to declare a variable then making it equal to a code ? or a result of a code without function calling ?--Kindest Regardsstatic var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: "CoreDataApp") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { store could not be migrated to the current model version. Check the error message to determine what the actual problem was. */ fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }()
1
0
524
Apr ’20
Implementing Table Search Bar
HiI want to do something like Apple Mail App, at top a search bar and it can be hidden, when I place the search field and top of table view then add a table view cell it pushes it under it if I put it outside the table view it doesnt scroll, so whats the standatrd here ?--Kindest Regards
2
0
388
Apr ’20
Core Data Fetching
HiIm strugeling in fetching data from core data first it was the egenric thing Im not sure if its solved or not, aftering getting an array of managed objects Im struggeling feeding its data to table view cell, I think it suppose to be a simple task ?--Kindest Regardsh ttps://www.dropbox.com/s/vb3cet085v05tvi/Core%20Data%20Simple.zip?dl=0
5
0
1.2k
Apr ’20